﻿using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using SharePointMvc;

namespace SampleWebApplication
{

    public class MvcApplication : HttpApplication
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
            RoutingManager.BuildAndRegisterRoutesFromConfig();
 
        }

        protected void Application_Start()
        {
            RegisterRoutes(RouteTable.Routes);
        }
    }
}